package com.itheima.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Slf4j
//@Aspect
@Component
public class AspectDemo2 {

    @Before("execution(public * com.itheima.service.*.*(..))")
    //连接点
    public void m2(JoinPoint jp){
        log.info("前置通知：{}",jp.getSignature());
    }

}
